package cn.dankal.business;

public interface Constants {
    int offset = 0;

    String Chinese = "ch";

    String LANGUAGE = "language";

    String PHONE = "phone";

    String CODE = "code";


    String TYPE = "type";


    String UUID = "uuid";

    String INTO_TYPE = "into_type";//进入活动详情类型（2，我的活动预约进入）

    int SCAN = 212;

    /*检查类型*/
    enum CheckType {

        Phone(0, "手机号码"), Email(1, "邮箱");

        CheckType(int statesCode, String stateName) {
            this.statesValue = statesCode;
            this.statesName = stateName;
        }

        private int statesValue = 0x000;
        private String statesName;

        public int getStates() {
            return statesValue;
        }

        public String getName() {
            return statesName;
        }

    }

    /*检查类型*/
    enum ActivityStatus {

        NoStart(0, "未开始"), OnProgress(1, "进行中"), End(2, "已结束");

        ActivityStatus(int statesCode, String stateName) {
            this.activityStatusValue = statesCode;
            this.activityStatusName = stateName;
        }

        private int activityStatusValue = -0x001;
        private String activityStatusName;

        public int getStatusCode() {
            return activityStatusValue;
        }

        public String getName() {
            return activityStatusName;
        }

        public String getName(int statusCode) {
            if (statusCode == NoStart.getStatusCode()) {
                return NoStart.getName();
            }
            if (statusCode == OnProgress.getStatusCode()) {
                return OnProgress.getName();
            }
            if (statusCode == End.getStatusCode()) {
                return End.getName();
            }
            return "未知";
        }

    }

    // 报名状态
    interface ApplyStatus {

        int isUnApply = 0; // 未报名

        int isApply = 1; // 已报名

    }

    interface ApplyRequireType {

        String name = "name";
        String sex = "sex";
        String phone = "phone";
        String age = "age";
        String carryNumber = "carryNumber";
        String remark = "remark";

    }

    /***
     * 手机状态是否存在枚举
     */
    interface PhoneExistStatus {

        /*对象不存在*/
        int isNotExist = 20001;

        /*对象存在*/
        int isExist = 10001;

    }

    //资讯和此刻
    int TYPE_CURRENT = 0;
    int TYPE_INFORMATION = 1;

    //我的活动
    int TYPE_ALL = -1;
    //        0待参加
    int TYPE_WAITING = 0;
    //        1进行中
    int TYPE_PROCESS = 1;
    //        2已结束
    int TYPE_FINISHED = 2;


    //首页点击跟多
    int ITEM_HOME = 0;
    int ITEM_ACTIVITY = 1;
    int ITEM_INFORMATION = 2;
    int ITEM_CURRENT = 3;
    int ITEM_MINE = 4;


    /**
     * 选择上传的证件
     */
    int TYPE_CAR_LISENSE = 0;
    int TYPE_DRIVER_LISENSE = 1;
    int TYPE_CAR_PIC = 2;


    /**
     * 登录页
     */

    String TYPE_REGISTER = "手机快速注册";

    String TYPE_FORGET_PASS = "忘记密码";

    ///////////////////////////////////////////////////////////////////////////
    // 通知
    int MSG_READ = 0;
    int MSG_DEL = 1;
    //系统消息
    int MSG_TYPE_SYSTEM = 0;
    //预约消息
    int MSG_TYPE_APPOINT = 1;
    //评论消息
    int MSG_TYPE_COMMENT = 2;
    ///////////////////////////////////////////////////////////////////////////


}
